package com.mantru.iotpot.setting

import android.app.Application
import android.content.Context
import android.util.Log
import androidx.lifecycle.AndroidViewModel
import com.mantru.iotpot.ApplicationClass
import com.mantru.iotpot.Util.MotherboardUtil
import com.mantru.iotpot.eventbus.EventMessage
import com.mantru.iotpot.eventbus.EventMessage.MSG_ID_OnHttpData_APP
import com.mantru.iotpot.eventbus.EventMessage.MSG_ID_OnHttpData_IAP
import org.greenrobot.eventbus.EventBus
import org.greenrobot.eventbus.Subscribe
import org.greenrobot.eventbus.ThreadMode
import org.json.JSONObject

class SettingViewModel (application: Application) : AndroidViewModel(application) {

    private val applicationClass: ApplicationClass = application as ApplicationClass

    fun showStateBar(show: Boolean){
        MotherboardUtil.showBarState(applicationClass, show)
    }
}